<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="fm" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>


    <title>My JSP 'insert.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.12.4.js"></script>

    <script type="text/javascript">

        /*function checkSname(){
            var sname=$("[name='sname']").val();
            if(sname==''||sname.length==0){
                $("[name='sname']").focus();
                alert("姓名必填!");
                return false;
            }
            return true;
        }

        $(function(){
            $("#xxForm").submit(
                function(){
                    if(!checkSname()) return false;
                    return true;
                }
            );
        });*/

    </script>
</head>

<body>
<fm:form id="xxForm" action="/realauthdoUpdate" method="post" modelAttribute="old">
    <fm:hidden path="realauthid"/>
    用户名:<fm:input path="applier.username"/><br/>
    真实姓名：<fm:input path="realname"/><br/>
    身份证号：<fm:password path="idnumber"/><br/>
    <c:if test="${old.sex==0}">
        性别：<input type="text" value="男"/>
    </c:if>
    <c:if test="${old.sex==1}">
        性别：<input type="text" value="女"/>
    </c:if>
    生日：<fm:input path="borndate"/><br/>
    身份证地址：<fm:input path="address"/><br/>
    身份证正面：<fm:input path="image1"/><br/>
    身份证反面：<fm:input path="image2"/><br/>
    审核备注：<fm:textarea path="remark"/><br/>

    <button type="submit" value="1" name="state">审核通过</button><br/>
    <button type="submit" value="2" name="state">审核拒绝</button>
</fm:form>
</body>
</html>